/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package yudisium;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;

public class PanelKelasMahasiswa extends JPanel {

    private JCheckBox jc, cbNaskah, cbDaftra;
    private JLabel label1, label2, lblPeriode, label4, label5, label6, labelTitle;
    private JButton btSimpan, btBatal, btKeluar, but4;
    private JTextField tfPeriode1, tfPeriode2;
    private JTextArea area;
    JTextField textFieldNim = new javax.swing.JTextField();
    JTextField textFieldNama = new javax.swing.JTextField();
    JTextField textFieldNope = new javax.swing.JTextField();
    JTextField textFieldProdi = new javax.swing.JTextField();

    public PanelKelasMahasiswa() {

        this.setLayout(null);
        labelTitle = new JLabel();
        labelTitle.setFont(new java.awt.Font("Tahoma", 0, 18));
        labelTitle.setText("Mahasiswa");
        this.add(labelTitle);
        labelTitle.setBounds(120, 10, 270, 30);
        this.add(labelTitle);

        JLabel labelid = new JLabel();
        labelid.setText("Nim :");
        this.add(labelid);
        labelid.setBounds(25, 80, 90, 16);
        textFieldNim.setText(" ");
        this.add(textFieldNim);
        textFieldNim.setBounds(95, 80, 180, 20);

        JLabel judul = new JLabel();
        judul.setText("Nama :");
        this.add(judul);
        judul.setBounds(25, 105, 100, 26);
        textFieldNama.setText(" ");
        this.add(textFieldNama);
        textFieldNama.setBounds(95, 110, 180, 20);

        JLabel penulis = new JLabel();
        penulis.setText("Nomor Hp :");
        this.add(penulis);
        penulis.setBounds(25, 130, 110, 36);
        textFieldNope.setText(" ");
        this.add(textFieldNope);
        textFieldNope.setBounds(95, 140, 180, 20);

        JLabel penerbit = new JLabel();
        penerbit.setText("Prodi :");
        this.add(penerbit);
        penerbit.setBounds(25, 160, 200, 46);
        textFieldProdi.setText(" ");
        this.add(textFieldProdi);
        textFieldProdi.setBounds(95, 170, 180, 20);

        lblPeriode = new JLabel("Periode  :");
        lblPeriode.setBounds(25, 190, 200, 56);
        this.add(lblPeriode);
        label2 = new JLabel("(Day/Month/Year)");
        label2.setBounds(95, 205, 180, 20);
        this.add(label2);
        tfPeriode1 = new JTextField();
        tfPeriode1.setBounds(95, 235, 180, 20);
        this.add(tfPeriode1);

        JLabel label7 = new JLabel("Kelengkapan :");
        label7.setBounds(25, 265, 200, 66);
        this.add(label7);

        cbNaskah = new JCheckBox("Naskah TA");
        cbNaskah.setBounds(125, 265, 200, 66);
        this.add(cbNaskah);

        cbDaftra = new JCheckBox("Daftar Nilai");
        cbDaftra.setBounds(125, 305, 200, 66);
        this.add(cbDaftra);

        JCheckBox cbbspl = new JCheckBox("Bebas Pinjam dari Lab");
        cbbspl.setBounds(325, 265, 200, 66);
        this.add(cbbspl);

        JCheckBox cbbbspnjm = new JCheckBox("Bebas Pinjam dari Dosen");
        cbbbspnjm.setBounds(325, 305, 200, 66);
        this.add(cbbbspnjm);

        JCheckBox cbSur = new JCheckBox("Surat KKL/KI");
        cbSur.setBounds(125, 345, 200, 66);
        this.add(cbSur);

        JCheckBox cblap = new JCheckBox("Laporan KP");
        cblap.setBounds(325, 345, 200, 66);
        this.add(cblap);

        btSimpan = new JButton("Simpan");
        btSimpan.setBounds(110, 425, 80, 35);
        this.add(btSimpan);
        btBatal = new JButton("Batal");
        btBatal.setBounds(220, 425, 70, 35);
        this.add(btBatal);
        btBatal.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
               
            }
        });
        btKeluar = new JButton("Keluar");
        btKeluar.setBounds(330, 425, 90, 35);
        btKeluar.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                JFrame frame = new JFrame();
                FrameUtama fr = new FrameUtama();
                fr.transferFocusBackward();
            }
        });
        this.add(btKeluar);

        label4 = new JLabel("(Day/Month/Year)");
        label4.setBounds(315, 205, 180, 20);
        this.add(label4);
        label5 = new JLabel("(To)");
        label5.setBounds(285, 235, 150, 20);
        this.add(label5);
        tfPeriode2 = new JTextField();
        tfPeriode2.setBounds(315, 235, 180, 20);
        this.add(tfPeriode2);

    }
}
